package git.LiuZhanHong.Demo3_14;

public class Dog extends Animal {
    public Dog(String name, int age, String color) {
        this.setName(name);
        this.setAge(age);
        this.setColor(color);
    }
    //狗叫
    public void bark() {
        System.out.println("汪汪汪");
    }

    //吃方法
    public void eat() {
        System.out.println("小狗在吃骨头");
    }
    //跑方法
    public void run() {
        System.out.println("小狗在快速的跑");
    }
}
